﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.Xml.Serialization;
using System.Xml;

namespace Amazon.Route53.DataContracts
{
    public class Route53Exception : Amazon.Runtime.AmazonServiceException
    {
        public Route53Exception(Exception innerException,ErrorResponse response)
            : base(response.Error.Message??innerException.Message , innerException)
        {
            this.Error = response.Error;
            this.RequestId = response.RequestId;
        }

        public Error Error { get; private set; }        

    }
}
